// <copyright file="CartesianSeries.cs" company="YUIAsp.Net">
// Copyright (c) 2009 All Right Reserved
// </copyright>
// <author>raul popescu</author>
// <email>dev@yuiasp.net</email>
// <date>2009-01-30</date>
// <summary>YUIAsp.Net File</summary>

namespace YUIAspNet
{
    /// <summary>
    /// Base class for X and Y charts.
    /// </summary>
    public class CartesianSeries : Series
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="CartesianSeries"/> class.
        /// </summary>
        public CartesianSeries() : base("") { }

        /// <summary>
        /// Initializes a new instance of the <see cref="CartesianSeries"/> class.
        /// </summary>
        /// <param name="type">The type.</param>
        public CartesianSeries(string type) : base(type) { }

        /// <summary>
        /// Gets or sets the X field.
        /// </summary>
        /// <value>The X field.</value>
        public string XField { get; set; }

        /// <summary>
        /// Gets or sets the Y field.
        /// </summary>
        /// <value>The Y field.</value>
        public string YField { get; set; }
    }
}
